<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=utf-8" errorPage="/error.jsp" isELIgnored="false" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://www.opensymphony.com/oscache" prefix="cache" %>
<%@ taglib uri="http://atleap.blandware.com/taglib" prefix="atleap" %>
<html:xhtml />

<atleap:constants className="com.blandware.atleap.webapp.util.core.WebappConstants" var="HTML_TEXT_FIELD_MAX_LENGTH" />
<atleap:javascript formName="groupForm" staticJavascript="false" dynamicJavascript="true" method="validateForm" cdata="false" />
<atleap:content identifier="information" ignore="true" uri="/core/group/callCreate"/>
<atleap:form action="core/group/update" method="POST">
    <atleap:messages property="groupAlreadyExists" /><br />
    <atleap:messages property="updateFailed" />
    <table cellpadding="0" cellspacing="0" border="0" class="modificationTable">
        <tr>
            <th>
                <div class="readOnlyField"><atleap:message key="core.group.form.name" />:</div>
            </th>
            <td>
                &nbsp;<c:out value="${groupForm.name}" escapeXml="true" />
            </td>
        </tr>
        <tr>
            <th>
                <atleap:label property="title" styleClass="label" key="core.group.form.title" colon="false" helpTip="true" />
            </th>
            <td>
                <html:text property="title" maxlength="${pageScope.HTML_TEXT_FIELD_MAX_LENGTH}" styleClass="text" />
            </td>
        </tr>
        <tr>
            <th>
                <atleap:label property="description" styleClass="label" colon="false" helpTip="true" key="core.group.form.description" />
            </th>
            <td>
                <html:textarea property="description" />
            </td>
        </tr>
    </table>
    <html:hidden property="name" />
    <html:hidden property="version" />
    <atleap:submit styleClass="button"><atleap:message key="core.commons.buttons.update" /></atleap:submit>
    <atleap:cancel styleClass="button"><atleap:message key="core.commons.buttons.cancel" /></atleap:cancel>
</atleap:form>
